package Test1224;

public class Test06 {
    public static void main(String[] args) {
        // 找出arr中的最小值
        int[] arr = {6, 1, 7, 4, 3};
        int min = arr[0];
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] < min) {
                min = arr[i];
                System.out.println(min);
            }
        }
    }
}
